<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>票品缺货登记</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link href="admin.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="../script/jquery-1.4.4.min.js"></script>
</head>
<body>
<div class="container">

    
    <script type="text/javascript">
    $(function(){
        /* 全选 */
         $('.checkall').click(function(){
            var _self = this;
            $('.checkitem').each(function(){
                if (!this.disabled)
                {
                    $(this).attr('checked', _self.checked);
                }
            });
            $('.checkall').attr('checked', this.checked);
        });	 
    });
    </script>
    <form action="" method="get">
    <input type="hidden" name="m" value="product">
    <input type="hidden" name="s" value="product_stock.php">
    </form>
    <form action="" method="post" id="form" name="form">
    <input type="hidden" name="act" value="op" />
    <table class="table product">
        </thead>
        <tbody>
            <tr class="partition">
                <th width="1"></th>
                <th width="20" valign="top"><input type="checkbox" class="checkall" id="del"></th>
                <th width="100">票品名称</th>
                <th width="50">数量</th>
                <th width="50">联系人</th>
                <th width="50">联系手机</th>
                <th width="50">价位</th>
                <th width="200">地址</th>
                <th width="60">添加时间</th>
                <th width="60">状态</th>
                <th width="60">操作</th>
            </tr>
            <{foreach item=item key=key from=$de.list}>
            <tr >
            	<td><{$item.id}></td>
                <td><input type="checkbox" class="checkall" name="chk[]" value="<{$item.id}>" /></td>
                <td><a href="module.php?s=product_launch.php&edit=<{$item.product_id}>&m=product"> <{$item.product_name}></a></td>
                <td><{$item.num}> 张</td>
                <td><{$item.user_name}></td>
                <td><{$item.user_mobile}></td>
                <td><{$item.price}></td>
                <td><{$item.user_addr}></td>
                <td><{$item.add_at|date_format:"%Y-%m-%d"}></td>
                <td><{if $item.status == -1}> 待处理 <{elseif $item.status == 1}> 已处理  <{/if}></td>
                <td>

                    <a onclick="return confirm('确认要审核么？');" href="module.php?m=product&s=product_stock.php&id=<{$item.id}>&action=check"><img src="<{$config.weburl}>/image/admin/edit.gif"></a>

                    <a onclick="return confirm('确认要删除？');" href="module.php?m=product&s=product_stock.php&id=<{$item.id}>&action=del"><img src="<{$config.weburl}>/image/admin/del.gif"></a></td>
            </tr>
            <{foreachelse}>
            <tr>
                <td class="norecord" colspan="99"><i></i><span>暂无符合条件的数据记录</span></td>
            </tr>
            <{/foreach}>
        </tbody>
        <tfoot>
            <tr>
            	<td></td>
            	<td colspan="10">
                <input type="checkbox" class="checkall" id="del">
                <input type="hidden" name="act" value="op" />
				<input type="submit" value="提交" />
                <div class="page"><{$de.page}></div>
                </td>
            </tr>
        </tfoot>
    </table>
    </form>
</div>
</body>
</html>